package com.uniapp.java.uniappjava.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author lsy_server
 */
@Document(collection = "author")
@Data
public class Author {
    @Id
    private String id;
    private String authorName;
    private String realName;
    private Integer age;
    private Sex sex;
    /**
     * 点赞量
     */
    private Long totalPraise = 0L;
    /**
     * 关注量
     */
    private Long attentionNum = 0L;

    @AllArgsConstructor
    public enum Sex {
        MAN("男"),
        WOMAN("女");
        private String db;
    }
}
